﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Data;

namespace hostal
{
    public partial class RegistrarReserva : Form
    {
        DataTable dataTableTemporal = new DataTable();
        public RegistrarReserva()
        {
            InitializeComponent();
        }

        private void TBBuscarReservas_Click(object sender, EventArgs e)
        {
            DGReservas.Columns.Clear();
            ReservasDataAccess buscarDataAccess = new ReservasDataAccess();
            if (CBTipoBusqueda.Text == "Fecha Ingreso")
            {
                dataTableTemporal = buscarDataAccess.buscarReservaFecha(DTFechaLlegada.Value.Date);
                DGReservas.DataSource = dataTableTemporal;
            }
        }
    }
}
